list=[1,34,62,239,167,84,91,43,46]


for i in range (0,len(list)) :
    for j in range (0,len(list)-i-1) :
        if list[j] > list[j+1] :
            list[j],list[j+1]=list[j+1],list[j]
print(list)